var Ajax;
if (Ajax && (Ajax != null)) {
	Ajax.Responders.register({
	  onCreate: function() {
        if($('spinner') && Ajax.activeRequestCount>0)
          Effect.Appear('spinner',{duration:0.5,queue:'end'});
	  },
	  onComplete: function() {
        if($('spinner') && Ajax.activeRequestCount==0)
          Effect.Fade('spinner',{duration:0.5,queue:'end'});
	  }
	});
}
$(document).ready(function() {
		$(":text,textarea,:password").bind("focus", function(){
		   //$(this).css("inputActive"); 
		   $(this).addClass("inputActive"); 
		   //alert($(this).css())
		}); 
		$(":text,textarea,:password").bind("blur", function(){
		   //$(this).css("inputActive"); 
		   $(this).removeClass("inputActive"); 
		   //alert($(this).css())
		}); 
		$('a[rel=tipsy]').tipsy({fade: true, html: true, gravity: 'n'});


});
